package com.design.create.singleton;

/**
 * 饿汉式单例实现
 */
public class HangrySingleton {

    private HangrySingleton() {}

    private static HangrySingleton hangrySingleton = new HangrySingleton();

    public static HangrySingleton getInstance() {
        return hangrySingleton;
    }
}
